package com.dingding.manager.modules.dirver.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @Description: 司机详情响应Bean
 * @author haoxiaojun
 * @date 2016年12月5日 下午9:42:33
 * @since V 2.5.7
 */
@SuppressWarnings("serial")
public class RespDetailDriverDTO implements Serializable {

	private String cityName; // 所在城市
	private String idCard; // 身份证号码

	private String jszFileNumber; // 驾驶证档案编号
	private Date jszLssueDate; // 初领驾驶证日期
	private String lisencePlate; // 车牌号

	private String organizationName; // 公司名称
	private String permittedType; // 准驾车型
	private String provice_name; // 省份

	private String telPhone; // 手机号码
	private String trueName; // 姓名

	private String vehicleModel;
	private String vehicleType; // 车型
	private String vehicleNumber; // 车架号
	private String vehicleOwner; // 车辆所有人

	private Date xszLssueDate; // 车辆注册日期
	private String idCardOppositeImage; // 身份证反面
	private String idCardPositiveImage; // 身份证正面

	private String jszImage; // 驾驶证正本
	private String vehicleImage; // 人车合影
	private String jszCopyImage; // 驾驶证副本

	private String xszCopyImage; // 行车本副本
	private Integer suvStatus; // 状态 1：审核中2：审核通过3：审核未通过 4：审核被拒绝
	private Integer sex; // 性别 1:男 2:女

	private Date jszValidityPeriod; // 车辆过期时间
	private Integer driving; // 驾龄
	private String xszImage;// 行车本

	private String userId; // 用户Id
	private String suId; // specialuserinfo Id
	private String uvId; // specialuservehicinfo Id

	private String vaId; // specialvehicleaudit Id
	private String specialAuthInfoId; // dd_special_user_auth_info Id
	private Integer companyId; // 公司Id
	private Integer provinceId; // 省份Id
	private Integer cityId; // 城市Id

	private String workLicenseNumber; // 上岗证编号
	private String workLicenseImage; // 上岗证图片
	private Integer authType; // 认证类型 1.游客 2.专车 3.出租车

	private Integer vehicleLevelId; // 车型
	private String userAvatar;// 用户头像

	public String getUserAvatar() {
		return userAvatar;
	}

	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}

	public Integer getVehicleLevelId() {
		return vehicleLevelId;
	}

	public void setVehicleLevelId(Integer vehicleLevelId) {
		this.vehicleLevelId = vehicleLevelId;
	}

	public Integer getAuthType() {
		return authType;
	}

	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	public String getWorkLicenseNumber() {
		return workLicenseNumber;
	}

	public void setWorkLicenseNumber(String workLicenseNumber) {
		this.workLicenseNumber = workLicenseNumber;
	}

	public String getWorkLicenseImage() {
		return workLicenseImage;
	}

	public void setWorkLicenseImage(String workLicenseImage) {
		this.workLicenseImage = workLicenseImage;
	}

	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public Integer getDriving() {

		Integer year = null;
		if (jszLssueDate != null) {

			// 注册日期转换为天
			long lssueDays = jszLssueDate.getTime() / (1000 * 60 * 60 * 24);
			// 当前时间转换为天
			long currDays = new Date(System.currentTimeMillis()).getTime() / (1000 * 60 * 60 * 24);

			year = (int) Math.floor((double) ((currDays - lssueDays) / 365));
		}

		return year;
	}

	public void setDriving(Integer driving) {
		this.driving = driving;
	}

	public String getXszImage() {
		return xszImage;
	}

	public void setXszImage(String xszImage) {
		this.xszImage = xszImage;
	}

	public String getUvId() {
		return uvId;
	}

	public void setUvId(String uvId) {
		this.uvId = uvId;
	}

	public String getVaId() {
		return vaId;
	}

	public void setVaId(String vaId) {
		this.vaId = vaId;
	}

	public String getSpecialAuthInfoId() {
		return specialAuthInfoId;
	}

	public void setSpecialAuthInfoId(String specialAuthInfoId) {
		this.specialAuthInfoId = specialAuthInfoId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSuId() {
		return suId;
	}

	public void setSuId(String suId) {
		this.suId = suId;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public Date getJszValidityPeriod() {
		return jszValidityPeriod;
	}

	public void setJszValidityPeriod(Date jszValidityPeriod) {
		this.jszValidityPeriod = jszValidityPeriod;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getJszFileNumber() {
		return jszFileNumber;
	}

	public void setJszFileNumber(String jszFileNumber) {
		this.jszFileNumber = jszFileNumber;
	}

	public Date getJszLssueDate() {
		return jszLssueDate;
	}

	public void setJszLssueDate(Date jszLssueDate) {
		this.jszLssueDate = jszLssueDate;
	}

	public String getLisencePlate() {
		return lisencePlate;
	}

	public void setLisencePlate(String lisencePlate) {
		this.lisencePlate = lisencePlate;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public String getPermittedType() {
		return permittedType;
	}

	public void setPermittedType(String permittedType) {
		this.permittedType = permittedType;
	}

	public String getProvice_name() {
		return provice_name;
	}

	public void setProvice_name(String provice_name) {
		this.provice_name = provice_name;
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public String getVehicleNumber() {
		return vehicleNumber;
	}

	public void setVehicleNumber(String vehicleNumber) {
		this.vehicleNumber = vehicleNumber;
	}

	public String getVehicleOwner() {
		return vehicleOwner;
	}

	public void setVehicleOwner(String vehicleOwner) {
		this.vehicleOwner = vehicleOwner;
	}

	public Date getXszLssueDate() {
		return xszLssueDate;
	}

	public void setXszLssueDate(Date xszLssueDate) {
		this.xszLssueDate = xszLssueDate;
	}

	public String getIdCardOppositeImage() {
		return idCardOppositeImage;
	}

	public void setIdCardOppositeImage(String idCardOppositeImage) {
		this.idCardOppositeImage = idCardOppositeImage;
	}

	public String getIdCardPositiveImage() {
		return idCardPositiveImage;
	}

	public void setIdCardPositiveImage(String idCardPositiveImage) {
		this.idCardPositiveImage = idCardPositiveImage;
	}

	public String getJszImage() {
		return jszImage;
	}

	public void setJszImage(String jszImage) {
		this.jszImage = jszImage;
	}

	public String getVehicleImage() {
		return vehicleImage;
	}

	public void setVehicleImage(String vehicleImage) {
		this.vehicleImage = vehicleImage;
	}

	public String getJszCopyImage() {
		return jszCopyImage;
	}

	public void setJszCopyImage(String jszCopyImage) {
		this.jszCopyImage = jszCopyImage;
	}

	public String getXszCopyImage() {
		return xszCopyImage;
	}

	public void setXszCopyImage(String xszCopyImage) {
		this.xszCopyImage = xszCopyImage;
	}

	public Integer getSuvStatus() {
		return suvStatus;
	}

	public void setSuvStatus(Integer suvStatus) {
		this.suvStatus = suvStatus;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	@Override
	public String toString() {
		return "RespDetailDriverDTO [cityName=" + cityName + ", companyId=" + companyId + ", idCard=" + idCard
				+ ", jszFileNumber=" + jszFileNumber + ", jszLssueDate=" + jszLssueDate + ", lisencePlate="
				+ lisencePlate + ", organizationName=" + organizationName + ", permittedType=" + permittedType
				+ ", provice_name=" + provice_name + ", telPhone=" + telPhone + ", trueName=" + trueName
				+ ", vehicleType=" + vehicleType + ", vehicleNumber=" + vehicleNumber + ", vehicleOwner=" + vehicleOwner
				+ ", xszLssueDate=" + xszLssueDate + ", idCardOppositeImage=" + idCardOppositeImage
				+ ", idCardPositiveImage=" + idCardPositiveImage + ", jszImage=" + jszImage + ", vehicleImage="
				+ vehicleImage + ", jszCopyImage=" + jszCopyImage + ", xszCopyImage=" + xszCopyImage + ", suvStatus="
				+ suvStatus + ", sex=" + sex + ", jszValidityPeriod=" + jszValidityPeriod + ", driving=" + driving
				+ ", userId=" + userId + ", xszImage=" + xszImage + ", suId=" + suId + ", uvId=" + uvId + ", vaId="
				+ vaId + ", specialAuthInfoId=" + specialAuthInfoId + "]";
	}

}
